import { httpInstance } from '@/utils/request'

interface FetchProjectPersonnelListAPIResData {
  code: number
  data: Person[]
  msg: string
  time: string
}

export function fetchProjectPersonnelListAPI(
  projectId: string,
  token: string,
) {
  return httpInstance.get<FetchProjectPersonnelListAPIResData>(
    'api/Project_extend/projectPersonnelList',
    { params: { project_id: projectId }, headers: { token } },
  )
}
